package com.cc.mongo;

import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
/**
 * Created by mhq on 16/10/28.
 */
@Document(collection="test")
public class TUser {

    public TUser(){}

    @PersistenceConstructor
    public TUser(String _id,String id, String name){
        this._id = _id;
        this.name=name;
        this.id = id;
    }

    @Id
    private String _id;
    private String id;
    private String name;
	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
